package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ym_form")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class FormModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;//用户id
    private String realName;//真是姓名
    private String mobile;//手机号
    private Double longitude;//经度
    private Double latitude;//纬度
    private String address;//详细地址
    private String detAddress;//地址
    private Integer questionType;// 问题类型ID,category
    private String content;//问题描述
    private Integer status;//数据状态ID,category
    private Integer isOverdue;//是否逾期
    @TableField(exist = false)
    private String isOverdueText;//是否逾期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Timestamp statusTime;//状态时间
    @TableField(exist = false)
    private String statusTimeText;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime expirationTime;//到期时间
    @TableField(exist = false)
    private String expirationTimeText;
    private Integer termId;
    @TableField(exist = false)
    private String termText;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Timestamp crtTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Timestamp upTime;
    @TableField(exist = false)
    private String upTimeText;
    private Integer road;//道路
    @TableField(exist = false)
    private String roadText;
    private Integer street;//街道
    @TableField(exist = false)
    private String streetText;
    private Integer superintend;//督查交办
    private Integer depId;
    @TableField(exist = false)
    private String depText;
    @TableField(exist = false)
    private Integer appeal;

    @TableField(exist = false)
    private String selectCrtTime;
    @TableField(exist = false)
    private String selectDepId;
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String faceUrl;
    @TableField(exist = false)
    private String questionTypeText;// 问题类型ID,category
    @TableField(exist = false)
    private String crtTimeText;// 所属人名字字段
    @TableField(exist = false)
    private String departmentName;// 所属部门字段
    @TableField(exist = false)
    private String typeText;// 所属部门字段
    @TableField(exist = false)
    private List<FormUrlModel> picList;// 字段
    @TableField(exist = false)
    private List<FormUrlModel> videoList;// 字段
    @TableField(exist = false)
    private Integer count;
    @TableField(exist = false)
    private FormRemarkModel formRemarkModel;
    @TableField(exist = false)
    private String keyWord;//关键字
    @TableField(exist = false)
    private String statusText;//数据状态ID,category

    @TableField(exist = false)
    private Integer page;//关键字

    @TableField(exist = false)
    private Integer limit;//关键字

}
